import tushare as ts
import pandas as pd

ts.set_token('e7eb86aff0c45f2bec5e57d6569b7bc04facffb6b91f1fa068c31426')
pro = ts.pro_api()
df = pro.trade_cal(exchange='', start_date='20180901', end_date='20181001', fields='exchange,cal_date,is_open,pretrade_date', is_open='1')

data = pro.stock_basic(exchange='', list_status='L', fields='ts_code,symbol,name,area,industry,list_date')

print(data.head(1)["ts_code"])

